package com.api;

import com.api.Fallback.TradeClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: LiuLi
 * @Date: 2025/09/03 11:55
 * @Description: 交易服务FeignClient
 */
@FeignClient(name = "trade-service",fallbackFactory = TradeClientFallback.class)
public interface TradeClient {

    /**
     * 标记订单支付成功
     * @param orderId
     */
    @PutMapping("/orders/{orderId}")
    void markOrderPaySuccess(@PathVariable("orderId") Long orderId);
}